Google Plus AIR Native Extension
The extension is available here: com.distriqt.GooglePlus
Firstly before setting up any console projects make sure you check if your Android application is currently linked to a API console project: https://play.google.com/apps/publish If it is then you MUST use that project details otherwise you will have issues getting tokens.
The simple method uses the tools from Google to quickly create and add the appropriate APIs to your API project.
Add to your Android app: here
air.com.distriqt.test
Click Choose and configure services
You will need to enter the fingerprint of your signing certificate here (see ![](Android Certificate | Setup - Android Certificate) section for more) |
Add to your iOS app: here
com.distriqt.test
Following this will add the required APIs and the 3 credentials to your Google APIs project.
You can now jump to the section to get the information for configuring this extension.
The following method gives you more control over what is created and a better understanding of the details of the credentials created.
If you need to create an API project
Now that you have created a project or you have previously created a project, lets add the Google Identity API to your project.
Similarly enable the Token Service API and the Google+ API
Now you will need to create the credentials for your application. There are 3 credentials required to fully support all the functionality in this extension:
1. iOS: - Create credential / **OAuth client ID** / iOS - Enter your bundle id: eg: `com.distriqt.test` - Take note of the "Client ID", you will need to pass this to the `GoogleIdentityOptions` as the iOS client ID 2. Android: - Create credential / **OAuth client ID** / Android - Enter the SHA1 fingerprint of your certificate (See ![](Android Certificate|Setup - Android Certificate)) - Enter the package name of your application: eg: `air.com.distriqt.test`. Please note that this is related to your AIR application ID but can be very different. We suggest making sure you use a valid Java package name for your AIR application ID. - You do not directly need to supply any information from this credential to the ANE. The matching is made completely on the package name and the certificate fingerprint.
![](images/apisconsole-createcredentials-android.png) 3. Web Application: - Create credential / **OAuth client ID** / Web application - Take note of the "Client ID" for the "Web application", you will need this value for your `GoogleIdentityOptions` ![](images/apisconsole-createcredentials-webapp.png)
More information can be found here:
Android: Getting Started iOS: Getting Started